package pers.wangyuhang.demo;

/**
 * Created with IntelliJ IDEA.
 * Desciption:
 * User: 15716
 * Date: 2021-12-20
 * Time: 20:01
 */
public class InstanceTest {
    public static void main(String[] args) {
        Phone p = new Phone();
        System.out.println(p);
        p.sendEmail();
    }
}

class Phone {
    double price;

    public void sendEmail() {
        System.out.println("发送邮件");
    }

    public void playGame() {
        System.out.println("玩游戏");
    }

}
